Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

Add support for specialist document attachments #133

Merged
merged 6 commits into from Mar 7, 2014

Conversation

heathd
Copy link
Contributor

@heathd heathd commented Mar 6, 2014

Specialist documents can have multiple attachments with titles. We capture the original filename so that we can present markdown hints for embedding the attachment in the admin UI.

heathd and others added 4 commits March 6, 2014 15:20
Specialist documents can have multiple attachments with titles. We capture the original filename so that we can present markdown hints for embedding the attachment in the admin UI.
it's cleaner to use `#select` than mapping to possibly nil values and then compacting.

Also allow SafeHtml validator to be used on model classes which don't define GOVSPEAK_FIELDS, as it seems superfluous to define this on a model which doesn't have any fields.
include GdsApi::TestHelpers::AssetManager

setup do
Attachable.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Syntax error.

@heathd heathd closed this Mar 7, 2014
Also tightened up the tests on specialist_document_edition to validate
that the file upload does get triggered when saving the
SpecialistDocumentEdition (verifying that the callbacks get fired on the
embedded attachment document).
@heathd heathd reopened this Mar 7, 2014
@heathd
Copy link
Contributor Author

heathd commented Mar 7, 2014

fixed those test failures, thanks Brad

alext added a commit that referenced this pull request Mar 7, 2014
…ocument-edition

Add support for specialist document attachments
@alext alext merged commit 112ad52 into master Mar 7, 2014
@alext alext deleted the add-attachments-to-specialist-document-edition branch March 7, 2014 15:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants